package com.zenith.edu.po.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("edu_credit")
@Schema(name = "EduCredit", description = "学分实体")
public class EduCredit extends BaseEntity {
    
    @Schema(description = "学生ID")
    private Long studentId;
    
    @Schema(description = "课程ID")
    private Long courseId;
    
    @Schema(description = "获得学分")
    private BigDecimal credit;
    
    @Schema(description = "状态：1-有效 2-作废")
    private Integer status;
}